package jp.tkym.labs.jetty;

import java.io.IOException;

import javax.servlet.Servlet;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

class DebugServlet implements Servlet{
	@Override
	public void destroy() {}
	@Override
	public ServletConfig getServletConfig() { return null; }
	@Override
	public String getServletInfo() { return null; }
	@Override
	public void init(ServletConfig arg0) throws ServletException {}
	@Override
	public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException {
		System.out.println("ContentType:"+req.getContentType());
		String line = null;
		while((line = req.getReader().readLine()) != null)
			System.out.println(line);
	}
}